<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body background="img/bolg2.jpg">
<div th:replace="commons/bar::topbar"></div>

<div class="row clearfix">
    <div class="col-md-12 column">
        <table class="table table-hover table-striped">
            <thead>
            <tr>
                <th>ID</th>
                <th>发表人</th>
                <th>标题</th>
                <th>时间</th>
                <th>up</th>
                <th>low</th>
                <th>查看</th>
                <td>删除</td>
                <td>修改</td>
            </tr>
            </thead>
            <tbody>
            <tr th:each="bolg:${bolgs}">
                <td th:text="${bolg.id}"></td>
                <td th:text="${bolg.userName}"></td>
                <td th:text="${bolg.title}"></td>
                <td th:text="${#dates.format(bolg.date,'yyyy-MM-dd')}"></td>
                <td th:text="${bolg.up}"></td>
                <td th:text="${bolg.low}"></td>
                <td>
                    <a th:href="@{'/bolg?id='+${bolg.id}}">点击查看</a>
                </td>
                <td>
                    <a th:href="@{'/bolg/delete?id='+${bolg.id}}">点击删除</a>
                </td>
                <td>
                    <a th:href="@{'/user/bolg/update?id='+${bolg.id}}">点击修改</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>